package com.prj.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class EmpWork {
    //主键
    private Long id;
    //员工ID
    private Long empId;
    //工作内容
    private String content;
    //工作时间

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date workTime;
    //创建时间
    private Date createTime;
    //员工姓名
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getEmpId() {
        return empId;
    }

    public void setEmpId(Long enpId) {
        this.empId = enpId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getWorkTime() {
        return workTime;
    }

    public void setWorkTime(Date workTime) {
        this.workTime = workTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "EmpWork{" +
                "id=" + id +
                ", enpId=" + empId +
                ", content='" + content + '\'' +
                ", workTime=" + workTime +
                ", createTime=" + createTime +
                '}';
    }
}
